package com.wanmait.demo;

import org.mybatis.spring.annotation.MapperScan;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication//(exclude = DataSourceAutoConfiguration.class)
//如果不配置，默认扫描启动类所在的包及其子包，如果配置了就不提供默认配置了
@MapperScan("com.wanmait.demo.mapper")//mybatis mapper接口的自动扫描
@ServletComponentScan //过滤器 监听器 servlet都可以使用
@EnableCaching
public class HeatingApplication {
    public static void main(String[] args) {
        SpringApplication.run(HeatingApplication.class, args);
        /*SpringApplication application = new SpringApplication(BootdemoApplication.class);
        //关闭banner条显示
        application.setBannerMode(Banner.Mode.OFF);
        application.run(args);*/
    }
}

